$(function(){
    $("#form").click(function(){
        var bankCd=$("#bankCd").val();
        var userNm=$("#userNm").val();
        var mobileNo=$("#mobileNo").val();
        var credtNo=$("#credtNo").val();
        var acntNo=$("#acntNo").val();
        var pageFrontUrl=$("#pageFrontUrl").val();
        $.post("http://47.97.119.47:1234/fuyou/contractApp","bankCd="+bankCd+"&userNm="+userNm+"&mobileNo="+mobileNo+"&credtNo="+credtNo+"&acntNo="+acntNo+"&pageFrontUrl="+pageFrontUrl,
            function(data){
                var resultDate = JSON.parse(data.data);
                console.info("srcChnl："+resultDate.srcChnl +"busiCd :"+resultDate.busiCd);
                $("#srcChnl").val(resultDate.srcChnl);
                $("#busiCd").val(resultDate.busiCd);
                $("#credtTp").val(resultDate.credtTp);
                $("#acntTp").val(resultDate.acntTp);
                $("#mchntCd").val(resultDate.mchntCd);
                $("#isCallback").val(resultDate.isCallback);
                $("#reserved1").val(resultDate.reserved1);
                $("#key").val(resultDate.signature);
                sub();
            },"json"
        )
    })

    function sub(){
        $("#form1").submit();
    }
})